package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IUserCommentDao;
import com.guoxue.domain.UserCommentVo;
import com.guoxue.service.IUserCommentService;
@Service("userCommentService")
public class UserCommentServiceImpl implements IUserCommentService{

	@Resource
	private IUserCommentDao dao;

	@Override
	public void saveComment(UserCommentVo vo) {
		dao.saveComment(vo);
	}

	@Override
	public List<UserCommentVo> getCommentByOrder(int begin, int count, int tapesId) {
		return dao.getCommentByOrder(begin,count,tapesId);
	}

	@Override
	public List<UserCommentVo> getCommentByOrderAndDate(int start, int total, int tapesId, String date) {
		return dao.getCommentByOrderAndDate(start,total,tapesId,date);
	}
}
